package com.lagou.util;

public class ServerInfo {
    private String host;

    private int port;

    private long duration;

    public ServerInfo(long duration) {
        this.duration = duration;
    }

    public ServerInfo(String host, int port) {
        this.host = host;
        this.port = port;
    }

    public ServerInfo(String host, int port, long duration) {
        this.host = host;
        this.port = port;
        this.duration = duration;
    }

    @Override
    public String toString() {
        return "ServerInfo{" +
                "host='" + host + '\'' +
                ", port=" + port +
                ", duration=" + duration +
                '}';
    }

    public long getDuration() {
        return duration;
    }

    public void setDuration(long duration) {
        this.duration = duration;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }
}
